package com.xhl.controller;


import com.xhl.entity.ArticleType;
import com.xhl.service.ArticleTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xhlMr
 * @since 2020-07-28
 */
@RestController
@RequestMapping("/article-type")
public class ArticleTypeController {

    @Autowired
    private ArticleTypeService articleTypeService;

    @RequestMapping("/all")
    public List<ArticleType> queryArticleTypeAll(){
        return articleTypeService.list(null);
    }

}

